//
//  HEIMGroupSectionTitleView.m
//  HealthElderly
//
//  Created by 吴欧 on 2021/11/22.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEIMGroupSectionTitleView.h"

@interface HEIMGroupSectionTitleView ()

@property (nonatomic, strong) UILabel *titleLb;

@end

@implementation HEIMGroupSectionTitleView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self=[super initWithFrame:frame]) {
        
        self.backgroundColor = KWhiteColor;

        [self initUI];
    }
    return self;
}

- (void)initUI {
    _titleLb = [UILabel new];
    _titleLb.font = DYBlodFont(17);
    _titleLb.numberOfLines = 1;
    [self addSubview:_titleLb];
 
    [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(5);
        make.left.equalTo(self).offset(15);
        make.right.equalTo(self).offset(-15);
        make.bottom.equalTo(self).offset(-15);
    }];
}

- (void)refreshTitle:(NSString *)title {
    _titleLb.text = title;
}

@end
